body {
	font-family: 'Open Sans', sans-serif;
	margin: auto;
	line-height: 1.6;
	color: #333;
}

h1, h2, h3 {
	font-family: 'Montserrat', sans-serif;
	color: #3F51B5;
}
h2, h3, p, li {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 25px;
}
li {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	color: #57a7cc;
}
em {
	color: #e91e63;
}
a, a:visited {
	color: #e91e63;
}
a:hover {
	color: #ed7656;
}

.hidden-preload {
	position: absolute;
	visibility: hidden;
}

header {
	position: relative;
	text-align: center;
	background-color: #e91e63;
	padding-top: 60px;
	padding-bottom: 60px;
}
header h1 {
	position: relative;
	margin: 0;
	padding: 0 20px;
	color: white;
}
header p {
	position: relative;
	color: white;
	margin: auto;
}
header a, header a:visited {
	color: white;
}
.header-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

nav {
	text-align: center;
}
nav ul {
	padding: 0;
	margin: 5px;
}
nav li {
	list-style: none;
	display: inline;
	font-size: 0.8rem;
	color: #333;
}
nav li:not(:last-child):after {
	content: " \00b7";
}


main {
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 80px;
	margin-bottom: 80px;
}

.sketch {
	display: block;
	position: relative;
	max-width: 500px;
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 30px;
	margin-bottom: 30px;

	-webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
	border-style: solid;
	border-width: 1px;
	border-color: rgb(0, 0, 0, 0.2);
	border-radius: 5px;
	background-color: white;
}
.sketch-small {
	max-width: 250px;
}
.sketch-letter {
	max-width: 50px;
}
.sketch-child {
	display: block;
	width: 100%;
}
.sketch-mult {
	width: 20vw;
	max-width: 200px;
	margin: 0;
}

.img-component-container {
	max-width: 500px;
	width: 90%;
	margin: auto;
	display: grid;
	grid-template-columns: repeat(8, auto);
	grid-gap: 1.5vw;
}
.multi-container .img-component-container {
	margin: 0 20px;
}

.img-component {
	display: block;
	width: 100%;

	-webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
	border-style: solid;
	border-width: 1px;
	border-color: rgb(0, 0, 0, 0.2);
	border-radius: 5%;
	background-color: white;
}
.maths {
	font-size: 10vw;
}

.button {
	display: block;
	margin: auto;
	background-color: #e91e63;
	color: white;
	font-size: 20px;
	padding: 0.5em 1em;
	border-radius: 5px;
	border: none;
	transition: transform 0.1s linear,
				background-color 0.1s linear;
}
.button:hover, .button:focus {
	background-color: #ed7656;
}
.button:focus {
	outline: 0;
}
.button:active {
	transform: scale(0.95);
}
.embedded-button {
	position: absolute;
	top: 0;
	right: 0;
}
.instruction {
	font-size: 30px;
	color: #e91e63;
	margin: auto;
	position: absolute;
	text-align: center;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	opacity: 1;

	pointer-events: none;
	-moz-user-select: -moz-none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	-o-user-select: none;
	user-select: none;

	transition: opacity 0.2s ease-in-out;
}
.wave-instruction {
	top: 25%;
}
.hidden {
	opacity: 0;
}
.clear-pixels {
	image-rendering: pixelated;
}

.multi-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 20px;
	margin-bottom: 20px;
	justify-content: center;
}
/* Because flex box doesn't collapse margins, use much smaller ones */
.multi-container .sketch {
	margin: 10px;
}
.multi-container .sketch-mult {
	margin: 2vw;
}

input[type=range] {
	display: block;
	max-width: 500px;
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 30px;
	margin-bottom: 30px;
}